home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / masdir54.zip / SDLDEBUG.BAT < prev    next >
DOS Batch File  |  1991-01-31  |  2KB  |  49 lines

  1. ECHO OFF
  2. IF (%1)==(END) GOTO NOCHANGE
  3. IF EXIST SDLSETUP.TXT GOTO TXTOK
  4. ECHO Unable to locate the text file to use with DEBUG.
  5. ECHO Please run SDLSETUP to create the necessary file.
  6. :NOCHANGE
  7. ECHO * * *
  8. ECHO NO CHANGES HAVE BEEN MADE TO SDL.COM!
  9. :pause
  10. GOTO END
  11. :TXTOK
  12. sdl_get F SDLSETUP.TXT
  13. IF %GET% == 0 GOTO NOCHANGE
  14. ECHO W >>SDLSETUP.TXT
  15. ECHO Q >>SDLSETUP.TXT
  16. ECHO Input processing complete, now updating SDL.COM . . .
  17. DEBUG SDL.COM <SDLSETUP.TXT >DEBUG.TST
  18. IF EXIST DEBUG.TST GOTO OK
  19. ECHO * * *
  20. ECHO Using the DOS DEBUG command appears to have failed!
  21. ECHO DEBUG may not be on a valid disk drive on your system, or
  22. ECHO you may not have a path to DEBUG.  Please check the
  23. ECHO directories on your path for the existence of DEBUG.COM.
  24. ECHO If you can establish a path to DEBUG or copy DEBUG.COM
  25. ECHO to this working area, you can install the changes you
  26. ECHO have just made by entering SDLDEBUG.
  27. GOTO END
  28. :OK
  29. ERASE DEBUG.TST
  30. ECHO * * *
  31. ECHO SDL.COM has been modified.
  32. ECHO Don't forget to COPY your new version of SDL.COM
  33. ECHO to the disk and/or directory with your other DOS
  34. ECHO commands and utilities.
  35. :END
  36. IF EXIST SDL*.TXT ERASE SDL*.TXT >NUL
  37. SET GET=
  38. SET $=
  39. if not exist INSTALL.BAT goto ISMOD
  40. ECHO * * *
  41. Echo Would you like to run INSTALL to copy your modified version of
  42. Echo SDL.COM to the directory of your choice?
  43. SDL_GET N "Enter Y to run INSTALL, N to exit to DOS? "
  44. if errorlevel 89 if not errorlevel 90 INSTALL
  45. :ISMOD
  46. if not exist INSTALL.BAT pause
  47. if exist menu.bat menu
  48. ECHO Exiting to DOS ...
  49.